package atom.core0.exception;
/*
 * 业务连接异常 包括连接超时
 * 
 *  连接超时，应该当成失败。因为，信息还没有送到对方。
 *  
 *  遇到这种异常，系统应该重试。因为，谁也无法保证对方系统有短暂的连接不上
 * @author hike_man
 */ 
public class BizConnectException extends BizException{

    private static final long serialVersionUID = 975871555628622213L;
    
    private Throwable ex;

    public BizConnectException(Throwable ex){
    	super(ex);
    	this.ex = ex;
    }
    public BizConnectException(String errorCode, String msg) 
    {
    	super(errorCode, msg);
    }
    public BizConnectException(String msg) 
    {
    	super(msg);
    }    
    public BizConnectException(Throwable ex,String errorCode, String msg) 
    {
    	super(ex,errorCode, msg);
    }
    public BizConnectException(Throwable ex,String msg) 
    {
    	super(ex, msg);
    }    
	public Throwable getEx()
    {
    	return ex;
    }    
}
